import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInformation(query) {
    return request({
        url: '/business/information/list',
        method: 'get',
        params: query
    })
}

export function listInformationReview(query) {
    return request({
        url: '/business/information/reviewList',
        method: 'get',
        params: query
    })
}

// 查询【请填写功能名称】详细
export function getInformation(businessId) {
    return request({
        url: '/business/information/' + businessId,
        method: 'get'
    })
}

// 新增【请填写功能名称】
export function addInformation(data) {
    return request({
        url: '/business/information',
        method: 'post',
        data: data
    })
}

// 修改【请填写功能名称】
export function updateInformation(data) {
    return request({
        url: '/business/information',
        method: 'put',
        data: data
    })
}

// 删除【请填写功能名称】
export function delInformation(businessId) {
    return request({
        url: '/business/information/' + businessId,
        method: 'delete'
    })
}

export function editMainClass(data) {
    return request({
        url: "/business/information/editMainClass",
        method: "post",
        data
    });
}

export function editBusinessManager(data) {
    return request({
        url: "/business/information/editBusinessManager",
        method: "post",
        data
    });
}

